﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true"
    CodeFile="product_edit.aspx.cs" Inherits="admin_product_edit" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        KE.show({ id: '<%=tbContent.ClientID %>',
            imageUploadJson: '../../asp.net/upload_json.ashx',
            fileManagerJson: '../../asp.net/file_manager_json.ashx',
            allowFileManager: true
        });

        function show() {
            $('#trContent').show();
        }
        function hide() {
            $('#trContent').hide();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="upEdit" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"
        RenderMode="Inline">
        <ContentTemplate>
            <table class="tblist" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <tra>
                        <th align="right" width="100px">
                            上级目录:
                        </th>
                        <td align="left">
                            <asp:DropDownList ID="ddlType" runat="server" />
                        </td>
                    </tra>
                </tr>
                <tr>
                    <th align="right">
                        添加:
                    </th>
                    <td align="left">
                        <asp:RadioButton ID="rbtnProduct" runat="server" Checked="true"
                            GroupName="add" Text="产品信息" onclick="show()" />
                        <asp:RadioButton ID="rbtnCategory" runat="server"  GroupName="add"
                            Text="分类目录" onclick="hide()" />
                    </td>
                </tr>
                <tr>
                    <th align="right" width="100px">
                        名称：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="tbTitle" runat="server" Width="200px" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbTitle"
                            ErrorMessage="名称不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr id="trContent">
                    <th align="right">
                        内容：
                    </th>
                    <td align="left">
                        <asp:TextBox ID="tbContent" runat="server" Height="400px" TextMode="MultiLine" Width="700px" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:Button ID="btnOk" runat="server" OnClick="btnOk_Click" OnClientClick="dclick()"
                            Text="提交" />
                        <asp:Button ID="btnOk1" runat="server" BorderWidth="0" Height="0" OnClick="btnOk1_Click"
                            Text="" Width="0" />
                        <script type="text/javascript">

                            function dclick() {
                                var id = '<%=btnOk1.ClientID %>';
                                $('#' + id).click();
                            }
                        </script>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
